package com.d0315;

import java.util.Scanner;

public class Circul extends Shape {
    @Override
    double area() {
        return radius*radius*3.14;
    }
    @Override
    double perimeter() {
        return 3.14*radius*2;
    }

    public static void main(String[] args) {
        Circul circular = new Circul();
        System.out.println("请输入圆的半径：");
        Scanner input = new Scanner(System.in);
        radius = input.nextInt();
        System.out.println("周长："+circular.perimeter());
        System.out.println("面积："+circular.area());
    }
}
